package com.chat.app.controller;

import com.chat.common.model.AjaxResult;
import com.chat.video.service.TUserPostingsService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @Reference
    private TUserPostingsService tUserPostingsService;

    @ResponseBody
    @GetMapping("index")
    public AjaxResult index(){
        System.out.println(tUserPostingsService.test()+"----------------------");
        return AjaxResult.success(tUserPostingsService.test());
    }

}
